﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>BOXSYS - Sistema de Rendiciones .................................</title>
    	<LINK href="Styles.css" type="text/css" rel="stylesheet">
    	
		<script type="text/javascript"  src="JScript.js"></script>
		<script type="text/javascript">
				function validaRut(){
					var txt = document.form1.txtLogin;
					if(verificaRut(txt.value))
						return true;
					else{
						alert("El RUT ingresado no es válido.");	
						return false;
					}
						
				}
		</script>
</head>
	<body bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">



   
		
		
	
		<form id="form2" method="post" runat="server">
			<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            </telerik:RadScriptManager>
            <telerik:RadAjaxManager 
                                        ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="btnEntrar">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="lblMsg" 
                                LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="lblVersion" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
                                    </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
            Width="75px" Transparency="20">
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading1.gif") %>'
                style="border: 0px;" />
        </telerik:RadAjaxLoadingPanel>
        <table borderColor="#cccccc" cellSpacing="0" cellPadding="0" width="75%" align="center"
				bgColor="#ffffff" border="1">
				<tr>
					<td>
						<table cellSpacing="0" cellPadding="0" width="761" align="center" border="0">
							<!-- fwtable fwsrc="boxsys4.png" fwbase="index.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
							<tr>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="231" border="0"></td>
								<td width="3"><IMG height="1" alt="" src="images/spacer.gif" width="19" border="0"></td>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="41" border="0"></td>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="331" border="0"></td>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="5" border="0"></td>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="25" border="0"></td>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="108" border="0"></td>
								<td><IMG height="1" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td colSpan="7" height="64"><IMG height="75" alt="" src="images/index_r1_c2.gif" width="760" border="0" name="index_r1_c2"></td>
								<td height="64"><IMG height="75" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td width="255" colSpan="2"><IMG height="33" alt="" src="images/index_r2_c2.gif" width="250" border="0" name="index_r2_c2"></td>
								<td colSpan="5"><IMG height="33" alt="" src="images/index_r2_c4.gif" width="510" border="0" name="index_r2_c4"></td>
								<td><IMG height="33" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td rowSpan="7"><IMG height="463" alt="" src="images/index_r3_c2.gif" width="231" border="0" name="index_r3_c2"></td>
								<td colSpan="5">&nbsp;</td>
								<td background="images/index_r3_c8.gif" rowSpan="5">&nbsp;</td>
								<td><IMG height="98" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td colSpan="2" rowSpan="4">&nbsp;</td>
								<td><IMG height="22" alt="" src="images/index_r4_c5.gif" width="331" border="0" name="index_r4_c5"></td>
								<td colSpan="2" rowSpan="4">&nbsp;</td>
								<td><IMG height="22" alt="" src="images/spacer.gif" width="1" border="0">
                                </td>
							</tr>
							<tr>
								<td background="images/index_r5_c5.gif">
									<table cellSpacing="6" cellPadding="0" width="95%" align="center" border="0">
										<tr>
											<td width="27%"><strong><font color="#006699">Empresa:</font></strong></td>
											<td width="73%"><asp:dropdownlist id="selEmpresa" runat="server" DataValueField="empID" DataTextField="empNombre"
													CssClass="objeto" Width="168px"></asp:dropdownlist></td>
										</tr>
										<tr>
											<td><strong><font color="#006699">Usuario:</font></strong></td>
											<td><asp:textbox id="txtLogin" onblur="this.value=formateaRut(this.value);" runat="server" CssClass="objeto"
													Width="120px" text="" /></td>
										</tr>
										<tr>
											<td><strong><font color="#006699">Clave:</font></strong></td>
											<td><asp:textbox id="txtClave" runat="server" CssClass="objeto" Width="120px" TextMode="Password"
													text="" />&nbsp;<asp:button id="btnEntrar" runat="server" CssClass="boton" 
                                                    Width="72px" Text="Entrar" onclick="btnEntrar_Click"></asp:button></td>
										</tr>
										<tr>
											<td colSpan="2"></td>
										</tr>
									</table>
									<asp:label id="lblMsg" runat="server" CssClass="Msg" Width="296px"></asp:label></td>
								<td><IMG height="158" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td><IMG height="18" alt="" src="images/index_r6_c5.gif" width="331" border="0" name="index_r6_c5"></td>
								<td><IMG height="18" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td vAlign="top">&nbsp;
									<asp:label id="lblVersion" runat="server" Visible="False" Width="104px">Label</asp:label></td>
								<td><IMG height="100" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td vAlign="top" colSpan="4" rowSpan="2">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td height="29">
												&nbsp;</td>
										</tr>
										<tr>
											<td>&nbsp;</td>
										</tr>
									</table>
								</td>
								<td colSpan="2">&nbsp;</td>
								<td><IMG height="35" alt="" src="images/spacer.gif" width="1" border="0"></td>
							</tr>
							<tr>
								<td colSpan="2">&nbsp;</td>
								<td><img src="images/spacer.gif" width="1" height="32" border="0" alt=""></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
    </div>
    </form>
</body>
</html>